package com.cn.service;

import com.cn.mapper.UserMapper;
import com.cn.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * 数据库层
 */
@Repository
public class UserRepository {
    @Autowired
    private UserMapper userMapper;

    public User findUserById(int id){
        return userMapper.findUserById(id);
    }
}
